﻿@using Wicresoft.Movies.Models
@model MoviePart
           
@{
    var ratingSelectItems = Enum.GetNames(typeof (MPAARating)).
                                 Select(r => new SelectListItem() {Text = r, Value = r, Selected = r == Model.Rating.ToString()}).ToList();
           }


<fieldset>
    <legend>@T("Detail")</legend>
    @*@Html.LabelFor(m => m.IMDB_ID, T("IMDB ID"))
    @Html.TextBoxFor(m => m.IMDB_ID)*@
    @Html.LabelFor(m => m.YearReleased, T("Year Released"))
    @Html.TextBoxFor(m => m.YearReleased)
   @* @Html.LabelFor(m => m.Rating, T("MPAA Rating"))
    @Html.DropDownListFor(m => m.Rating, ratingSelectItems)*@
</fieldset>
